package com.wangshuqi.boot.result;

import java.io.Serializable;

public class ResultMessage implements Serializable {

    private static final long serialVersionUID = 45768767352L;

    private int status;

    private String message;

    public static ResultMessage fail(int status, String message) {
        return new ResultMessage(status, message);
    }

    public static ResultMessage success() {
        return new ResultMessage(0, "success");
    }

    ResultMessage(int status, String message) {
        this.status = status;
        this.message = message;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
